﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuddHa.Common.JsonOpex
{
    public interface IJsonOpexSerializer
    {
        T Deserialize<T>(ReadOnlySpan<byte> utf8Json);

        T Deserialize<T>(string json);

        object Deserialize(string json, Type type);

        string Serialize<T>(T obj);

        byte[] SerializeToUtf8Bytes<T>(T obj);
    }
}
